﻿using ExampleService.Infrastructure;
using WebApiClientCore.Attributes;
using WebApiClientCore.Extensions.OAuths;

namespace ExampleService.Xxxxx.SDK.Contract
{
    /// <summary>
    /// 第三方 获取Token  契约
    /// </summary>
    public interface IOAuthContract
    {
        /// <summary>
        /// 获取token
        /// </summary>
        /// <param name="appId"></param>
        /// <param name="secret"></param>
        /// <param name="grantType"></param>
        /// <returns></returns>
        [HttpPost("/api/auth/login")]
        Task<TokenResponse> GetToken([JsonContent] LoginRequest login);

    }
}
